package com.xiangge.zuoye;

public class Demo2 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int c = 30;

        int max = getMax(a,b,c);
        System.out.println("max = " + max);
    }

    public static int getMax(int a, int b, int c) {
        int max = 0;
        if (max<a) max = a;
        if (max<b) max = b;
        if (max<c) max = c;
        return max;
    }
}
